package cn.anc.aonicardv.param;

import android.os.Environment;

import java.io.File;

import cn.anc.aonicardv.BuildConfig;
import cn.anc.aonicardv.MyApplication;
import cn.anc.aonicardv.util.FileUtils;

/**
 * Created by baobaoding on 2017/5/10.
 */

public class ParamManager {
    public final static String ThumbnailTmpDir = FileUtils.getSDPath(MyApplication.getInstance()) + File.separator + "tmp" + File.separator;
    public final static String TRANS_CODE_VIDEO_TMP_DIR = FileUtils.getSDPath(MyApplication.getInstance()) + File.separator + BuildConfig.FLAVOR + File.separator + "tmp" + File.separator;
    public final static String VIDEO_MUSIC_RES_DIR = FileUtils.getSDPath(MyApplication.getInstance()) + File.separator + BuildConfig.FLAVOR + File.separator + "music" + File.separator;



    public static class RemoteServerParam {
        private final static String ServerUrl = "http://share.dvr-cloud.com/";
        public final static String FileUploadUrl = ServerUrl + "upload";
        public final static String VideoShareBaseUrl = ServerUrl + "video_player.php?share_url=";
    }

    public static class CarServerParam {
        public final static int CarControlHttpPort = 80;
        public final static int CarControlNotifyPort = 3333;
        public final static int CarControlDataPort = 9999;
        public static int HttpPort = 0;
        public static String RtspUrl = "";
        public static String RearRtspUrl = "";
        public static String http_base_url = "";
    }
}